using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._MultidimensionTools._NetCDF
{
    /// <summary>
    /// <para>Feature to NetCDF</para>
    /// <para>Converts a point feature class to a netCDF file.</para>
    /// <para>将点要素类转换为 netCDF 文件。</para>
    /// </summary>    
    [DisplayName("Feature to NetCDF")]
    public class FeatureToNetCDF : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FeatureToNetCDF()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The input point feature class.</para>
        /// <para>输入点要素类。</para>
        /// </param>
        /// <param name="_fields_to_variables">
        /// <para>Fields to Variables</para>
        /// <para><xdoc>
        ///   <para>The field or fields used to create variables in the netCDF file.</para>
        ///   <para>Four special fields—Shape.X, Shape.Y, Shape.Z, and Shape.M—can be used for exporting x-coordinates or longitude, y-coordinates or latitude, Z values, and M values of input features, respectively.</para>
        ///   <bulletList>
        ///     <bullet_item>Field—A field in the input feature attribute table.</bullet_item><para/>
        ///     <bullet_item>Variable—The netCDF variable name</bullet_item><para/>
        ///     <bullet_item>Units—The units of the data represented by the field</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>用于在 netCDF 文件中创建变量的一个或多个字段。</para>
        ///   <para>四个特殊字段（Shape.X、Shape.Y、Shape.Z 和 Shape.M）分别可用于导出输入要素的 x 坐标或经度、y 坐标或纬度、Z 值和 M 值。</para>
        ///   <bulletList>
        ///     <bullet_item>字段 - 输入要素属性表中的字段。</bullet_item><para/>
        ///     <bullet_item>变量 - netCDF 变量名称</bullet_item><para/>
        ///     <bullet_item>单位 - 字段表示的数据单位</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_netCDF_file">
        /// <para>Output netCDF File</para>
        /// <para>The output netCDF file. The file name must have an .nc extension.</para>
        /// <para>输出 netCDF 文件。文件名必须具有 .nc 扩展名。</para>
        /// </param>
        public FeatureToNetCDF(object _in_features, object _fields_to_variables, object _out_netCDF_file)
        {
            this._in_features = _in_features;
            this._fields_to_variables = _fields_to_variables;
            this._out_netCDF_file = _out_netCDF_file;
        }
        public override string ToolboxName => "Multidimension Tools";

        public override string ToolName => "Feature to NetCDF";

        public override string CallName => "md.FeatureToNetCDF";

        public override List<string> AcceptEnvironments => ["scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_features, _fields_to_variables, _out_netCDF_file, _fields_to_dimensions];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The input point feature class.</para>
        /// <para>输入点要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Fields to Variables</para>
        /// <para><xdoc>
        ///   <para>The field or fields used to create variables in the netCDF file.</para>
        ///   <para>Four special fields—Shape.X, Shape.Y, Shape.Z, and Shape.M—can be used for exporting x-coordinates or longitude, y-coordinates or latitude, Z values, and M values of input features, respectively.</para>
        ///   <bulletList>
        ///     <bullet_item>Field—A field in the input feature attribute table.</bullet_item><para/>
        ///     <bullet_item>Variable—The netCDF variable name</bullet_item><para/>
        ///     <bullet_item>Units—The units of the data represented by the field</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>用于在 netCDF 文件中创建变量的一个或多个字段。</para>
        ///   <para>四个特殊字段（Shape.X、Shape.Y、Shape.Z 和 Shape.M）分别可用于导出输入要素的 x 坐标或经度、y 坐标或纬度、Z 值和 M 值。</para>
        ///   <bulletList>
        ///     <bullet_item>字段 - 输入要素属性表中的字段。</bullet_item><para/>
        ///     <bullet_item>变量 - netCDF 变量名称</bullet_item><para/>
        ///     <bullet_item>单位 - 字段表示的数据单位</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Fields to Variables")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _fields_to_variables { get; set; }


        /// <summary>
        /// <para>Output netCDF File</para>
        /// <para>The output netCDF file. The file name must have an .nc extension.</para>
        /// <para>输出 netCDF 文件。文件名必须具有 .nc 扩展名。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output netCDF File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_netCDF_file { get; set; }


        /// <summary>
        /// <para>Fields to Dimensions</para>
        /// <para><xdoc>
        ///   <para>The field or fields used to create dimensions in the netCDF file.</para>
        ///   <bulletList>
        ///     <bullet_item>Field—A field in the input feature attribute table.</bullet_item><para/>
        ///     <bullet_item>Dimension—The netCDF dimension name</bullet_item><para/>
        ///     <bullet_item>Units—The units of the data represented by the field</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>用于在 netCDF 文件中创建维度的一个或多个字段。</para>
        ///   <bulletList>
        ///     <bullet_item>字段 - 输入要素属性表中的字段。</bullet_item><para/>
        ///     <bullet_item>维度 - netCDF 维度名称</bullet_item><para/>
        ///     <bullet_item>单位 - 字段表示的数据单位</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Fields to Dimensions")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _fields_to_dimensions { get; set; } = null;


        public FeatureToNetCDF SetEnv(object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}